Code Example For HTML Hr Tags (And Which Browsers Support Them) »

您所在的位置:网站首页 html hr Code Example For HTML Hr Tags (And Which Browsers Support Them) »

Code Example For HTML Hr Tags (And Which Browsers Support Them) »

2022-12-19 11:20| 来源: 网络整理| 查看: 265

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn moreElement ofLearn How Fonts And Web Typography Work In HTML: A Beginner's GuideWhat does Code Example For HTML Hr Tags (And Which Browsers Support Them) do?The element is used to represent a thematic break between paragraph-level elements. It is typically rendered as a horizontal line.Displayblock

Contents

1 Code Example2 A separator, not a border3 Browser Support for hr4 Attributes of hrCode Example

This is above line.

This is below the line.

This is above line.

This is below the line.

A separator, not a border

It is very easy to misuse the element. If you find yourself including in a page template, you should probably rethink things. Structural sections of your page design should be defined with the appropriate semantic document tags, and any lines you might desire should be defined with CSS. The element, which creates a small separator bar is best thought of as a typographical element, as something that might come within the context of your content — not a part of the design. This can be useful for when you want to divide a piece of content into sections without using headlines elements.

Adam WoodAdam is a technical writer who specializes in developer documentation and tutorials.Browser Support for hriefirefoxchromeedgesafarioperaAllAllAllAllAllAllAttributes of hrAttribute nameValuesNotesnoshadeWas used to change the display of a horizontal rule form the default 3D style to a flatter 2D style. Deprecated. Use CSS to control the display of an element.sizeWas used to specify the height (thickness) of a horizontal rule. Deprecated. Use CSS instead.widthWas used to specify the width of a horizontal rule. Deprecated in HTML5. Use CSS instead.alignWas used to control the horizontal alignment of a horizontal rule. Deprecated. Use CSS instead.colorWas used to control the display color of a horizontal rule. Deprecated. Use CSS instead.


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3